package com.cattsoft.framesetServlet;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.cattsoft.user.model.User;

public class FramesetServlet extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
		List users = new ArrayList();
		User user = new User();
		user.setId(1);
		user.setPassword("shang");
		user.setUsername("shang");
		users.add(user);
		request.setAttribute("users",users);
		request.getRequestDispatcher("/jsp/js/window/hiddenFrameset/data.jsp").forward(request, response);
	}
	
}
